<div class="expensetypes index">
    <h2 class="left"><?php __('Tipos de Gastos');?></h2>
<div class="actions specific right">
	<ul>
		<li><?php echo $this->Html->link(__('Agregar Nuevo', true), array('action' => 'add')); ?> </li>
	</ul>
</div>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('Nombre','name');?></th>
            <th><?php echo $this->Paginator->sort('Descripción','description');?></th>
            <th class="actions"><?php __('Acciones');?></th>
        </tr>
        <?php
        if (empty($expensetypes)) {
            ?>
            <tr>
                <td colspan="3">No se encontraron Tipos de Gastos</td>
            </tr>
            <?php
        }
        $i = 0;
        foreach ($expensetypes as $expensetype):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
        <tr<?php echo $class;?>>
            <td><?php echo $expensetype['Expensetype']['name']; ?>&nbsp;</td>
            <td><?php echo $expensetype['Expensetype']['description']; ?>&nbsp;</td>
            <td class="actions">
                    <?php echo $this->Html->link($this->Html->image('icons/magnifier.png'), array('action' => 'view', $expensetype['Expensetype']['id']), array('title' => __('Ver', true), 'escape' => false)); ?>
                    <?php echo $this->Html->link($this->Html->image('icons/pencil.png'), array('action' => 'edit', $expensetype['Expensetype']['id']), array('title' => __('Editar', true), 'escape' => false)); ?>
                    <?php echo $this->Html->link($this->Html->image('icons/cross.png'), array('action' => 'delete', $expensetype['Expensetype']['id']), array('title' => __('Eliminar', true), 'escape' => false), sprintf(__('Seguro que desea eliminar este Tipo de Gasto?', true), $expensetype['Expensetype']['id'])); ?>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
	echo $this->Paginator->counter(array(
	'format' => __('Página %page% de %pages%, mostrando %current% registros de %count% en total, a partir del registro %start%, terminando en el %end%', true)
	));
        ?>	</p>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
        <?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
    </div>
</div>